import request from '@/utils/request'

// 查询typedist列表
export function listWorkdist(query) {
  return request({
    url: '/task/workdist/list',
    method: 'get',
    params: query
  })
}

// 查询typedist详细
export function getWorkdist(id) {
  return request({
    url: '/task/workdist/' + id,
    method: 'get'
  })
}

// 新增typedist
export function addWorkdist(data) {
  return request({
    url: '/task/workdist',
    method: 'post',
    data: data
  })
}

// 修改typedist
export function updateWorkdist(data) {
  return request({
    url: '/task/workdist',
    method: 'put',
    data: data
  })
}

// 删除typedist
export function delWorkdist(id) {
  return request({
    url: '/task/workdist/' + id,
    method: 'delete'
  })
}

// 导出typedist
export function exportWorkdist(query) {
  return request({
    url: '/task/workdist/export',
    method: 'get',
    params: query
  })
}
